A company has contacted you asking for a simple stock inventory system to be developed using Java. Each product in the system has three different attributes, Product Number, Product Title and Product Description. Develop a program which when it first starts, gives the user four different options to choose from: View all products Add a new product Find a product by ID Close Program The company wishes for this product information that has been supplied to you to be added into a single text file which is read into the system when the program first starts. For each product inside of the text file, all three attributes for the product must be added into a new Custom Object which is then stored inside of a global vector in your program. This program should have a single class called Main.java which is the main program that will provide all the options. One additional class should be created which will allow each individual product information to be stored in, which is stored in a global vector. When the view all products option is selected, a list of all the products and each of their attributes should all be printed to the console. When a user selects add a new product , the user should be prompted to enter the three different pieces of information for a new product. This should be saved in a new object and added to the vector. If the user chooses Find a Product by ID , the user should be asked to enter in the ID of the product they wish to view. The vector should then be searched for the product with that ID. If the product is found, then the attributes for that product should be printed to the screen. If the user chooses Option 4, the program should save all of the objects from the vector and save the information from each object into a text file. This text file should be set up to allow the same program to read in all the information into objects and stored in the global vector if the program is started again. For all input, whenever the user is asked to type in information, validation should be put in place to ensure that the user has actually typed something in and it is not blank. Hints Use getter and setter methods for your object Create one variable for each attribute inside of your custom object Look on Moodle for sample code for searching a vector Deliverables Source for for the application (Not the class files) Comments in the code outlining what is happening at each stage For Custom Orders send a message on WhatsApp: +92 324 7042178
